public class main {

    static void main(String[] args) {
        //创建学生对象
        Student s1,s2;
        s1 = new Student("Tom", "boy", 20, "20240001");
        s2 = new Student( "Jerry", "boy", 18, "20240002");
        //创建课程对象
        Course C1 = new Course("1001","JavaClass","Wusheng");
        Course C2 = new Course("1002","ComputerScience","Zhanglong");
        //修改学生年龄
        s2.setAge(19);
        C2.setTeacher("Chenjian");
        //调用两类中的showinfo"方法"，即打印信息
        System.out.println("----- 学生信息 -----");
        s1.showinfo();
        s2.showinfo();
        System.out.println("\n----- 课程信息 -----");
        C1.showinfo();
        C2.showinfo();
    }
}
